/*
 * TextReader.h
 *
 *  Created on: 2009/02/24
 *      Author: Yongshik Cho
 */

#ifndef TEXTREADER_H_
#define TEXTREADER_H_

#include "../TextObject.h"
#include <tinyxml.h>

class TextReader
{
public:
	static const std::string _TEXT_STYLE_TAG;
	static const std::string _LINE_STYLE_TAG;
	static const std::string _LINE_COLOR_TAG;
	static const std::string _FILL_STYLE_TAG;
	static const std::string _FILL_COLOR_TAG;
	static const std::string _BACK_COLOR_TAG;
	static const std::string _TEXT_TAG;

	static const std::string _FONT_TAG;
	static const std::string _WIDTH_TAG;
	static const std::string _HEIGHT_TAG;
	static const std::string _ESCAPEMENT_TAG;
	static const std::string _ORIENTATION_TAG;
	static const std::string _WEIGHT_TAG;
	static const std::string _ITALIC_TAG;
	static const std::string _UNDERLINE_TAG;
	static const std::string _STRIKEOUT_TAG;
	static const std::string _OUTPRECISION_TAG;
	static const std::string _CLIPPRECISION_TAG;
	static const std::string _QUALITY_TAG;
	static const std::string _PITCHANDFAMILY_TAG;
	static const std::string _FACENAME_TAG;

	static const std::string _TEXT_BITMAP_TAG;
	static const std::string _TEXT_OUTLINE_TAG;
	static const std::string _LINE_NONE_TAG;
	static const std::string _LINE_SOLID_TAG;
	static const std::string _FILL_NONE_TAG;
	static const std::string _FILL_SOLID_TAG;


public:
	static TextObject* parse(TiXmlElement* element);
};

#endif /* TEXTREADER_H_ */
